import requests
from config import url, headers_web


class UserWeChatSession:

    def __init__(self):
        self.url = url
        self.headers = headers_web

    @classmethod
    def post_bindInfo(cls, url: str, params=None, headers=headers_web,json=None):
        """
        @Summary:获取用户绑定信息接口
        @Description:1.teachingapi、teachingservice-获取班级学生绑定信息使用
        :param url:
        :param params:
        :param headers:
        :param json:
        """
        url = url + "/authoritycontrolplatformapi/api/v1/user/miniprogram/bindInfo"
        r = requests.post(url=url, headers=headers, params=params,json=json)
        return r